<!-- 投诉与建议 -->
<template>
	<view class="page">
		<view class="content">
			<view class=""> 您遇到了哪些问题？ <view class=""> 官方 </view>
			</view>
			<view class=""> 平台将严肃处理问题，给您一个良好的用工体验！ </view>
			<view class="">
				<view class="" v-for="({img,title},i ) in list" :key="i" @click="toType(title)">
					<image :src="img" mode="" class="img"></image>
					<view class=""> {{title}} </view>
				</view>
			</view>
			<!-- 		<view class="" @click="toType(5)">
				<image class="img2" src="../../../static/shensu/edit.png" mode=""></image> 我有个建议 <uni-icons type="right"
					class="right" size="16"></uni-icons>
			</view> -->
		</view>
	</view>
</template>
<script>
	export default ({
		data() {
			return {
				list: [{
					img: require('../../../static/shensu/1.png'),
					title: '雇员行为',
				}, {
					img: require('../../../static/shensu/2.png'),
					title: '工作态度',
				}, {
					img: require('../../../static/shensu/3.png'),
					title: '工作进度'
				}, {
					img: require('../../../static/shensu/4.png'),
					title: '恶劣行为'
				}, ],
				orderid: '',
				taskId: '',
				taskStatus: ''
			}
		},
		onLoad(value) {
			let {
				orderid,
				taskId,
				taskStatus
			} = value
			this.orderid = orderid
			this.taskStatus = taskStatus
			this.taskId = taskId
		},
		methods: {
			toType(e) {
				uni.redirectTo({
					url: `/pages/tousu/boss/type?title=${e}&orderid=${this.orderid}&taskId=${this.taskId}&taskStatus=${this.taskStatus}`
				})
			}
		},
	})
</script>
<style lang="scss" scoped>
	.page {
		background: #fff;
		height: 100vh;
		width: 100%;
	}

	.content {
		display: flex;
		flex-direction: column;
		width: 694rpx;
		margin: 0 auto;

		&>view:first-child {
			font-size: 40rpx;
			font-weight: 800;
			color: #262626;
			display: flex;
			align-items: center;
			margin-top: 50rpx;

			&>view {
				width: 84rpx;
				height: 32rpx;
				background: #FF851D;
				border-radius: 6rpx;
				opacity: 1;
				font-size: 20rpx;
				text-align: center;
				line-height: 32rpx;
				color: #FFFFFF;
			}
		}

		&>view:nth-child(2) {
			font-size: 28rpx;
			font-weight: 400;
			color: #515151;
			margin-top: 10rpx;
		}

		&>view:nth-child(3) {
			font-size: 28rpx;
			font-weight: 400;
			color: #515151;
			margin-top: 10rpx;
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			margin-top: 12rpx;

			&>view {
				margin-top: 28rpx;
				width: 333rpx;
				height: 312rpx;
				background: #F1F1F5;
				border-radius: 12rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				flex-direction: column;

				.img {
					width: 116rpx;
					height: 116rpx;
				}

				&>view {
					font-size: 28rpx;
					font-weight: 400;
					color: #515151;
				}
			}
		}

		&>view:nth-child(4) {
			width: 100%;
			height: 80rpx;
			background: #F1F1F5;
			border-radius: 12rpx;
			margin-top: 40rpx;
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-weight: bold;
			color: #515151;

			&>.img2 {
				height: 40rpx;
				width: 40rpx;
				margin: 0 10rpx 0 20rpx;
			}

			.right {
				margin: 0 20rpx 0 auto;
			}
		}
	}
</style>